package demo13.Practice01;

public class DuckObserverSimulator {

	public static void main(String[] args) {
		DuckObserverSimulator simulator = new DuckObserverSimulator();
		AbstractDuckFactory duckFactory = new CountingDuckFactory();
 
		simulator.simulate(duckFactory);
	}
  
	void simulate(AbstractDuckFactory duckFactory) {

	//为修改抽象工厂为观察者模式
		

	}
 
	void simulate(QuackableObserver duck) {
		duck.query();
	}
}
